import java.util.Scanner;


/**
 * 会员购物时，根据输入积分的不同享受不同的折扣
 * 计算会员购物时获得的折扣输出实付金额
 * 会员积分x	 	折扣
 * x ＜ 2000		9折
 * 2000 ≤ x ＜ 4000	8折
 * 4000 ≤ x ＜ 8000	7折
 * x ≥ 8000		6折
 * */
public class MemberDiscount {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入会员积分: ");
        int points = scanner.nextInt();
        double discount = 0.0;//折扣
        double originalPrice = 100.0;  // 假设商品原价为 100 元
        double paidPrice = 0.0;//支付款
        switch (points / 1000){
            case 0:
            case 1:
                discount = 0.9;
                break;
            case 2:
            case 3:
                discount = 0.8;
                break;
            case 4:
            case 5:
            case 6:
            case 7:
                discount = 0.7;
                break;
            default:
                discount = 0.6;
                break;
        }
        paidPrice = originalPrice * discount;
        System.out.println("折扣: " + discount);
        System.out.println("实付金额: " + paidPrice);
    }
}